<?php
$a = $_GET['name'];
$b = array('a','b','c');
echo in_array($a,$b)?1:0;